home *** CD-ROM | disk | FTP | other *** search
/ Singles Flirt Up Your Life! (German) / Singles Flirt Up Your Life.iso / data1.cab / Script / globals.lua < prev    next >
Text File  |  2004-01-29  |  10KB  |  304 lines

  1. -- convenience abbreviations for mike's and elaine's character IDs
  2. NOBODY = CharacterGOResource.NOBODY    
  3. MIKE = CharacterGOResource.MIKE
  4. ELAINE = CharacterGOResource.ELAINE
  5.  
  6. -- conditions
  7. NEED_HUNGER = CharacterGOResource.NEED_HUNGER
  8. NEED_COMFORT = CharacterGOResource.NEED_COMFORT
  9. NEED_HYGIENE = CharacterGOResource.NEED_HYGIENE
  10. NEED_TIREDNESS = CharacterGOResource.NEED_TIREDNESS
  11. NEED_FUN = CharacterGOResource.NEED_FUN
  12. NEED_RELATIONSHIP = CharacterGOResource.NEED_RELATIONSHIP
  13. NEED_LIBIDO = CharacterGOResource.NEED_LIBIDO
  14. NEED_APARTMENT = CharacterGOResource.NEED_APARTMENT
  15. -- hidden conditions
  16. NEED_HYGIENE_BODY = CharacterGOResource.NEED_HYGIENE_BODY
  17. NEED_HYGIENE_MOUTH = CharacterGOResource.NEED_HYGIENE_MOUTH
  18. NEED_HYGIENE_HAND = CharacterGOResource.NEED_HYGIENE_HAND
  19.  
  20. NEED_LIBIDO_EROTIC = CharacterGOResource.NEED_LIBIDO_EROTIC
  21. NEED_LIBIDO_SEX = CharacterGOResource.NEED_LIBIDO_SEX
  22. NEED_RELATIONSHIP_FRIENDSHIP = CharacterGOResource.NEED_RELATIONSHIP_FRIENDSHIP
  23. NEED_RELATIONSHIP_ROMANTIC = CharacterGOResource.NEED_RELATIONSHIP_ROMANTIC
  24. NEED_JUSTICE = CharacterGOResource.NEED_JUSTICE
  25. NEED_WORK = CharacterGOResource.NEED_WORK 
  26. NEED_TROUBLE = CharacterGOResource.NEED_TROUBLE
  27. NEED_BLADDER = CharacterGOResource.NEED_BLADDER
  28. NEED_TIDINESS_OBJECTS = CharacterGOResource.NEED_TIDINESS_OBJECTS         
  29. NEED_TIDINESS_FLOOR = CharacterGOResource.NEED_TIDINESS_FLOOR       
  30. NEED_TIDINESS_PLATES = CharacterGOResource.NEED_TIDINESS_PLATES       
  31. NEED_TIDINESS_TRASH = CharacterGOResource.NEED_TIDINESS_TRASH       
  32.  
  33. -- relationship conditions
  34. REL_ROMANTIC = CharacterGOResource.REL_ROMANTIC
  35. REL_FUN = CharacterGOResource.REL_FUN
  36. REL_FRIENDSHIP = CharacterGOResource.REL_FRIENDSHIP
  37. REL_SEX = CharacterGOResource.REL_SEX
  38. REL_EROTIC = CharacterGOResource.REL_EROTIC
  39. REL_TROUBLE = CharacterGOResource.REL_TROUBLE
  40.  
  41. -- character conditions
  42. CHAR_EXTROVERTEDNESS = CharacterGOResource.CHAR_EXTROVERTEDNESS
  43. CHAR_PLAYFULLNESS = CharacterGOResource.CHAR_PLAYFULLNESS
  44. CHAR_TIDINESS = CharacterGOResource.CHAR_TIDINESS
  45. CHAR_FRIENDLYNESS = CharacterGOResource.CHAR_FRIENDLYNESS
  46. CHAR_NEUROTIC = CharacterGOResource.CHAR_NEUROTIC
  47. CHAR_MESSY = CharacterGOResource.CHAR_MESSY -- hidden
  48. CHAR_CHAOTIC = CharacterGOResource.CHAR_CHAOTIC -- hidden
  49.  
  50. -- Archtypes
  51. NOTYPE = CharacterGOResource.NOTYPE
  52. -- (female archtypes)
  53. BOSS = CharacterGOResource.BOSS
  54. SEDUCTRESS = CharacterGOResource.SEDUCTRESS
  55. SPUNKY_KID = CharacterGOResource.SPUNKY_KID
  56. FREE_SPIRIT = CharacterGOResource.FREE_SPIRIT
  57. INNOCENT_GIRL = CharacterGOResource.INNOCENT_GIRL
  58. SCIENTIST = CharacterGOResource.SCIENTIST
  59. ACTIVIST = CharacterGOResource.ACTIVIST
  60. NURSE = CharacterGOResource.NURSE
  61. -- (male archtypes)
  62. CHIEF = CharacterGOResource.CHIEF
  63. BAD_BOY = CharacterGOResource.BAD_BOY
  64. BEST_FRIEND = CharacterGOResource.BEST_FRIEND
  65. CHARMER = CharacterGOResource.CHARMER
  66. LOST_SOUL = CharacterGOResource.LOST_SOUL
  67. PROFESSOR = CharacterGOResource.PROFESSOR
  68. SWASHBUCKLER = CharacterGOResource.SWASHBUCKLER
  69. WARRIOR = CharacterGOResource.WARRIOR
  70.  
  71. -- Outfits
  72. ARCHTYPE = CharacterGOResource.ARCHTYPE
  73. STANDARD = CharacterGOResource.STANDARD
  74. TOWEL = CharacterGOResource.TOWEL
  75. SWIMMING = CharacterGOResource.SWIMMING
  76. UNDERWEAR = CharacterGOResource.UNDERWEAR
  77. NOTHING = CharacterGOResource.NOTHING
  78. NOTHING_SEX = CharacterGOResource.NOTHING_SEX
  79.         
  80. -- emoticons
  81. EMOTICON_ANGRY = CharacterGO.EMOTICON_ANGRY
  82. EMOTICON_CANNOT = CharacterGO.EMOTICON_CANNOT
  83. EMOTICON_DUNNO = CharacterGO.EMOTICON_DUNNO
  84. EMOTICON_HAPPY = CharacterGO.EMOTICON_HAPPY
  85. EMOTICON_INLOVE = CharacterGO.EMOTICON_INLOVE
  86. EMOTICON_NEGATIVE = CharacterGO.EMOTICON_NEGATIVE
  87. EMOTICON_NEUTRAL = CharacterGO.EMOTICON_NEUTRAL
  88. EMOTICON_POSITIVE = CharacterGO.EMOTICON_POSITIVE
  89. EMOTICON_SAD = CharacterGO.EMOTICON_SAD
  90. EMOTICON_SLEEPING = CharacterGO.EMOTICON_SLEEPING
  91. EMOTICON_SLEEPY = CharacterGO.EMOTICON_SLEEPY
  92. EMOTICON_SMILE = CharacterGO.EMOTICON_SMILE
  93. EMOTICON_DELAY = CharacterGO.EMOTICON_DELAY
  94. EMOTICON_NOPATH = CharacterGO.EMOTICON_NOPATH
  95. EMOTICON_NOSEAT = CharacterGO.EMOTICON_NOSEAT
  96. EMOTICON_SHY = CharacterGO.EMOTICON_SHY
  97. EMOTICON_NOSOFA = CharacterGO.EMOTICON_NOSOFA
  98. EMOTICON_SMELL = CharacterGO.EMOTICON_SMELL
  99. EMOTICON_APARTMENT = CharacterGO.EMOTICON_APARTMENT
  100. EMOTICON_WAIT = CharacterGO.EMOTICON_WAIT
  101. EMOTICON_EROTIC = CharacterGO.EMOTICON_EROTIC
  102. EMOTICON_JUSTICE = CharacterGO.EMOTICON_JUSTICE 
  103.  
  104. EMOTICON_HOBBY = CharacterGO.EMOTICON_HOBBY
  105. EMOTICON_COMFORT = CharacterGO.EMOTICON_COMFORT
  106. EMOTICON_COMPLIMENT = CharacterGO.EMOTICON_COMPLIMENT
  107. EMOTICON_RELATION = CharacterGO.EMOTICON_RELATION
  108. EMOTICON_ARGUE = CharacterGO.EMOTICON_ARGUE
  109. EMOTICON_SMALLTALK = CharacterGO.EMOTICON_SMALLTALK
  110. EMOTICON_JOKE = CharacterGO.EMOTICON_JOKE
  111. EMOTICON_TEASE = CharacterGO.EMOTICON_TEASE
  112. EMOTICON_GOSSIP = CharacterGO.EMOTICON_GOSSIP
  113.  
  114.  
  115. CONDITION_POSE_PAUSE = 10000
  116. CONDITION_POSE_PROB = 0.5
  117.  
  118. -- keys for entries in pie menu button
  119. ACTIVITY = PieButtonDescription.ACTIVITY
  120. DONTQUEUE = PieButtonDescription.DONTQUEUE
  121. USERACTION = PieButtonDescription.USERACTION
  122. ALWAYS_USERSELECTABLE = PieButtonDescription.ALWAYS_USERSELECTABLE
  123. HIDE_IF_UNSELECTABLE = PieButtonDescription.HIDE_IF_UNSELECTABLE
  124. NO_AI = PieButtonDescription.NO_AI
  125. GRAYED_OUT = PieButtonDescription.GRAYED_OUT
  126.  
  127. -- return values for activity.isPossible()
  128. -- the activity is possible
  129. POSSIBLE = Activity.POSSIBLE
  130. -- not possible because the object is broken    
  131. OBJECT_BROKEN = Activity.OBJECT_BROKEN
  132. -- not possible because the activity was already done too often this day or week
  133. MAX_COUNT = Activity.MAX_COUNT
  134. -- not possible because a skill is missing    
  135. NO_SKILL = Activity.NO_SKILL
  136. -- not possible because a need (condition) is not fulfilled    
  137. NO_CONDITION = Activity.NO_CONDITION
  138. -- not possible because a need (condition) of a partner is not fulfilled    
  139. NO_PARTNERCONDITION = Activity.NO_PARTNERCONDITION
  140. -- not possible because a relationship condition is not fulfilled
  141. NO_RELATIONSHIPCONDITION = Activity.NO_RELATIONSHIPCONDITION
  142. -- not possible because a relationship condition with non-partner character is not fulfilled
  143. NO_TARGETRELATIONSHIPCONDITION= Activity.NO_RELATIONSHIPCONDITION
  144. -- not possible because activity is being started out of time slot
  145. TIMESLOT = Activity.TIMESLOT
  146. -- not possible because not enough money
  147. NO_MONEY = Activity.NO_MONEY
  148. -- not possible for unknown reasons
  149. UNKNOWN = Activity.UNKNOWN
  150.  
  151. RIGHT_HAND = 0
  152. LEFT_HAND = 1
  153.  
  154. -- the polling time for cancelling an activity
  155. CANCEL_POLLING_INTERVAL = 1000
  156.  
  157. -- how long a picture will be showed
  158. TV_ANIM_FRAME_DURRATION = 100;
  159. TV_ACTIVITIES = {"watchSitcom", "watchAction", "watchNews", "watchRomantic", "watchHorror"};
  160. STEP_SOUNDS = {"", "Grass", "Wood", "Barefoot"};
  161.  
  162. PC_ACTIVITIES = {"playComputer", "chatComputer"};
  163. PC_PROGRAMS = {"play", "chat"};
  164.  
  165.  
  166. -- dirt types
  167. DIRT_FOOTSTEP = DirtServer.DIRT_FOOTSTEP;
  168. DIRT_BIGDIRT = DirtServer.DIRT_BIGDIRT;
  169. DIRT_SMASHED = DirtServer.DIRT_SMASHED;
  170. DIRT_TRASH = DirtServer.DIRT_TRASH;
  171.  
  172. -- dirt probability
  173. WALK_DIRT_PROBABILITY = 0.05
  174. WALK_DIRT_SIZE = 0.1
  175.  
  176. -- hoover stuff
  177. HOOVER_RADIUS_BONUS = 0.3
  178. STANDARD_HOOVER_RADIUS = 0.5
  179.  
  180.  
  181. -- how far away from the dirt schould we stand when cleaning floor
  182. DIRT_DISTANCE = 0.5;
  183.  
  184. -- don create new dirs on this floor types
  185. NO_DIRT_FLOOR_TYPES = {"Grass"}
  186.  
  187.  
  188. -- max facing and distance for watching objects (like tv)
  189. MAX_WATCH_FACING = -0.7;
  190. MAX_WATCH_DISTANCE = 6.0;
  191.  
  192.  
  193. -- time to clean one dish
  194. DISH_CLEAN_TIME = 20000;
  195.  
  196. -- week days
  197. MONDAY = GameDate.MONDAY
  198. TUESDAY = GameDate.TUESDAY
  199. WEDNESDAY = GameDate.WEDNESDAY
  200. THURSDAY = GameDate.THURSDAY
  201. FRIDAY = GameDate.FRIDAY
  202. SATURDAY = GameDate.SATURDAY
  203. SUNDAY = GameDate.SUNDAY
  204.  
  205. -- outside world
  206. CITY = GameObjectServer.CITY
  207. COUNTRY = GameObjectServer.COUNTRY
  208.  
  209. -- factor to speed up sex animations
  210. SEX_SPEEDUP = 2.0;
  211. -- factor to speed up walking
  212. WALK_SPEEDUP = tonumber(readConfig("Game", "walkSpeedUp", "1.5"));
  213. RUN_SPEEDUP = tonumber(readConfig("Game", "runSpeedUp", "1.0"));
  214.  
  215. WAIT_INTERACTION_ACTIVE = 30000;
  216. WAIT_INTERACTION_PASSIVE = 10000;
  217.  
  218.  
  219. STAIRS_DOWN_SPEEDUP = 1.5;
  220. STAIRS_UP_SPEEDUP = 1.5;
  221.  
  222. -- how long schould cooked food stay on the oven
  223. OVEN_FOOD_REMAIN_TIME = 3*60*1000;
  224.  
  225. -- default life time for objects that have the autoDestruct state machine
  226. -- individual life times can be defined in the config/game: lifeTime<resource name> = <life time in ms>
  227. DEFAULT_LIFE_TIME = 5*60*1000;
  228.  
  229.  
  230. QUEST_REQUEUE_TIME = 5*1000;
  231.  
  232.  
  233.  
  234. -- how long it takes until a stand pose says actionComplete()
  235. -- waring: complete time + fade out time must be >= fade in time
  236. -- currently it is 700 + 300 >= 1000
  237. STAND_POSE_COMPLETE_TIME = 700
  238. -- how long to fade betweeen stand pose anims
  239. STAND_POSE_FADE_TIME = 1000
  240.  
  241. -- how long it takes until a emo pose says actionComplete()
  242. EMO_POSE_COMPLETE_TIME = 700
  243. -- how long to fade betweeen emo pose anims
  244. EMO_POSE_FADE_TIME = 1000
  245. SHY_POSE_COMPLETE_TIME = 1000
  246.  
  247.  
  248. --DLG_POSES = {"Wonder", "Smile", "Sigh", "Shy", "Sad", "Flirt", "Bored", "Angry"}
  249.  
  250.  
  251.  
  252.  
  253. -- how long to fade betweeen sex anims
  254. SEX_FADE_TIME = 1000
  255. SEX_GROAN_GAP = 8000;
  256.  
  257.  
  258. -- trash stuff
  259. MAX_STINK_RATE = 1.0;
  260. MIN_STINK_RATE = 0.5;
  261. FULL_TRASHCAN_DIRTINESS = 1.0
  262. TRASH_TO_DIRT = 1.0;
  263.  
  264. -- oven stuff
  265. MAX_OVEN_DAMP_RATE = 0.1;
  266.  
  267.  
  268. -- dirty objects stuff
  269. CLEAN_PER_LOOP = 0.1; -- * clean effectiviness
  270. DIRTIFY_PER_BATH = 0.3; -- * (messy level / 10)
  271. DIRTIFY_PER_SIT_TOILET = 0.3; -- * (messy level / 10)
  272. DIRTIFY_PER_TABLE_EAT = 0.1; -- * (messy level / 10)
  273.  
  274.  
  275.  
  276.  
  277. -- room types
  278. LIVINGROOM = Room.LIVINGROOM;
  279. KITCHEN = Room.KITCHEN;
  280. WORKSPACE = Room.WORKSPACE;
  281. BEDROOM = Room.BEDROOM;
  282. BATHROOM = Room.BATHROOM;
  283. OUTSIDE = Room.OUTSIDE;
  284.  
  285. -- state object ID that is never used by a state object
  286. NO_OBJECT_ID = tonumber(StateObjectServer.NO_OBJECT_ID);
  287.  
  288. -- audio categories
  289. MUSIC = GameObjectServer.MUSIC;
  290. SOUND = GameObjectServer.SOUND;
  291. SPEECH = GameObjectServer.SPEECH;
  292.  
  293. -- update trigger message
  294. UPDATE_TRIGGER_MESSAGE = StandardGO.UPDATE_TRIGGER_MESSAGE
  295. REPAIR_COMMAND = StandardGO.REPAIR_COMMAND
  296. REPAIR = StandardGO.REPAIR
  297. PM_REPAIR = StandardGO.PM_REPAIR
  298.  
  299. -- day times
  300. MORNING = GameObjectServer.MORNING
  301. DAY = GameObjectServer.MORNING
  302. EVENING = GameObjectServer.MORNING
  303. NIGHT = GameObjectServer.MORNING
  304.